SIDchanger(TM) by PowerQuest(R)
Version 3.00

Copyright 1997-1999, PowerQuest Corporation.
All Rights Reserved. 

---------------------------------------------------------------------
TABLE OF CONTENTS

1.  Overview
2.  Command line interface
3.  Instructions
4.  Running SIDchanger with Drive Image(TM)
5.  Fixes in version 3.00
6.  Additional information


---------------------------------------------------------------------
OVERVIEW

PowerQuest offers powerful solutions to ensure that the imaging of
Windows NT workstations is fast, simple and secure.  This SID 
replacement utility has been working consistently in our lab and at 
selected beta sites.  However, because of the complex nature of this 
solution, we will continue to test and update this utility to ensure 
that it functions reliably.  When updates become available, they will 
be posted on the download updates section on our web site.
    
PowerQuest has built a reputation for quality and expertise with 
hard-disk utilities and wants, with your help, to build the very best 
solution for Windows NT installations.  PowerQuest is attempting to 
get Microsoft's cooperation to permanently solve the problem. 

PowerQuest SIDchanger was developed for the following purposes: 

    1)  To identify the current computer SID and replace it with a
        new SID.

    2)  To change the NT computer name.  Note: PowerQuest recommends
        using PQ_COMPUTERNAME as the computer name when the original
        computer is imaged to reduce the likelihood of incorrectly
        modifying the registry files during computer name replacement.
        However, in this version, any computer name may be replaced
        with confirmation from the user.  The original and new
        computer names must be of equal length.  If needed, the new
        name will be automatically padded with '_' followed by as
        many '0' characters as needed to synchronize the length.


---------------------------------------------------------------------
COMMAND LINE INTERFACE

    sidchngr [/s] | [<part_id> <\windir> [/n] [/i] [/e] [/r]
             [/ce[=oldName]]] [/cr=[oldName],newName]
             [/a[=d[,d]]] [/b]]

Where:

    /s          Returns a list of partitions with part_ids

    part_id     ID of partition containing registry to change

    windir      Specifies the windows directory (e.g., \winnt)

    /n          No file system integrity check

    /i          Identifies the computer SID

    /e          Enumerates all instances of the computer SID

    /r          Replaces all instances of the computer SID

    /ce[=oldName] Enumerates all instances of the computer name
                (If oldName is not specified, PQ_COMPUTERNAME is used.)

    /cr=[oldName],newName  Replaces computer name oldName with newName
                (If oldName is not specified, PQ_COMPUTERNAME is used.)

    /a[=d[,d]]  Limits NTFS file system SID search to partitions listed
                (If none listed, only partition 'part_id' is searched.)
                (If not specified, all NTFS partitions are searched.)

    /b          Reboots the computer after successful completion


---------------------------------------------------------------------
INSTRUCTIONS

Sidchngr.exe is a true DOS program and may be run from floppy or a 
hard drive.  SIDchanger will not run in an NT DOS Session.  Follow 
these steps to change the computer SID and computer name on your NT 
workstation.

1: Boot real DOS.

2: Type "sidchngr /s"

   -    This will give you a list of partitions on your hard drive.  
        The far right column contains partition IDs for each partition.
        This ID will be used by SIDchanger to know which partition 
        contains the NT system.

3: Type "sidchngr <part_id> <\windir> /i"

   -    For example, "sidchngr 0 \winnt /i"

   -    This will identify the computer SID and display it on the 
        screen.

4: Type "sidchngr <part_id> <\windir> /e"

   -    This will enumerate all instances of the computer SID
        and tell how many instances were found in the given
        file or volume.

5: Type "sidchngr <part_id> <\windir> /r"

   -    This will replace the computer SID with a new SID that is
        statistically unique.
    
6: Type "sidchngr <part_id> <\windir> /ce=oldCompName"

   -    This will enumerate all instances of the computer name
        and tell how many instances were found in the given
        file.

   -    If oldCompName is not specified, PQ_COMPUTERNAME will be used.

7: Type "sidchngr <part_id> <\windir> /cr=oldCompName,newCompName"

   -    This will replace the old computer name with the new name.

   -    If oldCompName is not specified, PQ_COMPUTERNAME will be used.
        The new name is required and a ',' character should precede it.

   -    If newCompName is shorter than oldCompName, the new name will
        be automatically padded with '_' followed by as many '0'
        characters as needed to synchronize the length.

        Confirmation of the name change is required before the
        replacement occurs unless oldCompName is PQ_COMPUTERNAME and
        newCompName is of equal length, or the command line option is
        specified to override the confirmation.  (See Unattended Use
        for details.)

        For example, "sidchngr 0 \winnt /cr=PQNAME,FRED" will result in
        the new computer name "FRED_0".
    
Alternative for steps 4 - 7:

8: Type "sidchngr <part_id> <\windir> /e /ce=oldCompName"

   -    This will enumerate all instances of the computer SID and the
        computer name (combining steps 4 and 6 above).

9: Type "sidchngr <part_id> <\windir> /r /cr=oldCompName,newCompName"

   -    This will replace all instances of the computer SID and the
        computer name (combining steps 5 and 7 above).

Unattended Use:

   -    Overriding confirmation of computer name replacement

        Replacement of the computer name is accomplished by replacing
        every occurrence of the old computer name found in the
        registry files.  If the old name is NOT unique, the replacement
        could adversely affect your system, possibly making Windows NT
        unable to start up.

        For example, if the old name was IS, and the name will change
        to PR, doing the replacement will replace every instance of IS,
        without regard to case, found in the registry.  This will change
        things like mapisrvr.exe to mapPRrvr.exe, PSDispatch to
        PSDPRpatch, etc.

        Because of the possible consequences of this replacement,
        you MUST confirm the replacement by re-entering the new
	computer name when prompted for confirmation.  However, this
        confirmation may take place on the command line by specifying
        "/o=newCompName" as the final option.  The newCompName MUST
        match the new name specified with the /cr option.
     
   Example: "sidchngr <part_id> <\windir> /r /cr=OldCompName,NewCompName
          /o=NewCompName"


----------------------------------------------------------------------
RUNNING SIDCHANGER WITH DRIVE IMAGE


    SIDchanger can be run as an integrated part of the Drive Image
    restore process by executing the proper commands in a batch file.

    The batch file 'sid.bat' should contain the following three lines
    (not including the line numbers):

    1.  [dir\]pqdi.exe /cmd=f:\dir\script.txt /img=f:\dir\%1.pqi
        /log=f:\dir\%1.log /err=f:\dir\%1.err

    2.  [dir\]sidchngr.exe  0 \winnt /e /ce=MIS000 >f:\dir\%1.enu

    3.  [dir\]sidchngr.exe 0 \winnt /r /cr=MIS000,%2 /b >f:\dir\%2.chg

        Note: %1 and %2 are DOS arguments to the batch file where
              %1= <image file name> and %2= <new computer name>

    Example: > sid.bat PQImage prg024

    The above command would restore the image contained in the
    PQImage.pqi file, enumerate the SID and the computer name (saving
    the information to a log file), replace the SID, and rename the
    computer PRG024 (logging that information as well), and reboot the
    computer.

    Additionally, the "/o" option described above could be used in the
    batch file so that no user intervention is needed. For example,
    replace line 3 in Sid.bat above with the following:

        3. [dir\]sidchngr.exe  0 \winnt /n /r /cr=MIS000,%2 /b /o=%2
           >f:\dir\%1.chg

    In this version, SIDchanger is not linked in directly with the
    Drive Image executable, so PowerQuest can continue to update this
    utility easily and quickly as new information becomes available.


---------------------------------------------------------------------
FIXES IN VERSION 3.00


   -    Added support for Windows NT Service Pack 4 (Added in 3.00)
   -    Added ability to specify some important Drive Image switches
        from the command line.  These include /IEB, /IFC, /IPE, /UEB,
        and /USG.  See the Drive Image documentation for a description
        of these switches.  (Added in 3.0)
   -    Added reboot option after successful completion (Added in 2.00)
   -    Added ability to limit search for the computer SID to the file
        system in selected NTFS partitions.  (Added in 2.00)

---------------------------------------------------------------------
ADDITIONAL INFORMATION


For more information on the Windows NT SID issue, visit our web site
at http://www.powerquest.com, or send e-mail to sid@powerquest.com.